package com.newtouch.bxzs.database.synchronize.service;


import com.newtouch.bxzs.database.synchronize.model.OrganizationBO;
import com.newtouch.bxzs.database.synchronize.model.UserBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 同步对端数据
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/25 16:17</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author yuanjie
 * @version 1.0.0
 * @since 1.0.0
 */

@Component
@FeignClient(url = "${synchronize.oppositeUrl}",name = "synchronizeOpposite")
public interface SynchronizeOppositeClient {


    /**
     * 同步对端机构信息
     * @return List<OrganizationBO>
     */
    @PostMapping(value="/dabaBase/getInsuranceOrganizationOther")
    List<OrganizationBO>getOppositeOrganizationOther();

    /**
     * 同步对端机构信息
     * @return List<OrganizationBO>
     */
    @PostMapping(value="/dabaBase/getInsuranceOrganization")
    List<OrganizationBO>getOppositeOrganization();

    /**
     * 同步对端用户信息
     * @return List<UserBO>
     */
    @PostMapping(value="/dabaBase/getInsuranceUser")
    List<UserBO>getOppositeUserOther();

}
